package link.luyu.demo.port.config;

import link.luyu.demo.port.HashLockManager;
import link.luyu.demo.port.db.LuyuHashLockTableJPA;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class HashLockManagerConfig {
    @Autowired LuyuHashLockTableJPA jpa;

    @Bean
    public HashLockManager newHashLockManager() {
        System.out.println("Initializing LuyuHashLockManager ...");
        return new HashLockManager(jpa);
    }
}
